package com.wms.ymcc.api;

import com.wms.ymcc.doc.CourseDoc;
import com.wms.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : 阿盛哟
 * @description : ES课程服务API
 * @createDate : 2025/6/18 18:38
 */
@FeignClient(value = "service-search") // 服务名
public interface ESCourseAPI {

    @PostMapping("/esCourse/save")
    JSONResult save(@RequestBody CourseDoc courseDoc);
}
